var app =new Vue({
	el:"#container",
	data: {
		listhui:[]
		
	},
	mounted() {
		this.selecthui();
	},
	methods:{
		selecthui(){
			let data= new URLSearchParams;
			data.append("pageNum",1),
			data.append("pageSize",10);
			axios({
				method : "post",
				url : "laifang/selectnurse",
				data : data,
				headers:{"token":localStorage.token,"url":window.location.pathname}
			}).then(response=>{
				this.listhui=response.data.data
				console.log(this.listhui);
			})
		},
		upizun(a){
			let data= new URLSearchParams;
			data.append("isDelete",a)
			axios({
				method : "post",
				url : "laifang/denurse",
				data : data,
				headers:{"token":localStorage.token,"url":window.location.pathname}
			}).then(response=>{
				this.selecthui();
			})
		}
	}
})